package com.michael.controller;


import com.michael.dao.TOrder;
import com.michael.service.TOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
   private TOrderService tOrderService;

    @GetMapping("/test")
    public void test(Integer b,String v){
        tOrderService.save(b, v);
    }

    @GetMapping("/get")
    public TOrder get(Long o){
        TOrder tOrder = tOrderService.get(o);
        return tOrder;
    }


}
